﻿using System;

class Program
{
    static void Main()
    {
        string str = "((a+b)/5-d)";
        char[] c = str.ToCharArray();
        int br=0;
        for (int i = 0; i < str.Length; i++)
        {
            if (c[i] == '(')
            {
                br++;
            }
            else if (c[i] == ')')
            {
                br--;
            }
            if (br < 0)
            {
                break;
            }
        }
        if(br==0)
            Console.WriteLine("Correct");
        else
            Console.WriteLine("Incorrect");
    }
}